function getCookie(name) {
	var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
	var ss = (arr = document.cookie.match(reg))
	if (ss) {
		return unescape(arr[2]);
	}
	return null;
}
let delCookie = function(name) {
 var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval = getCookie(name);
    if (cval !== null)
        document.cookie = name + "=" + cval + ";path=/;expires=" + exp.toGMTString();
}
export default delCookie;
